package com.gupaoedu.springboot.springbootfirst.secondDemo.current;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 *
 */
public class SecondMain {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext atx =
                new AnnotationConfigApplicationContext(SpringConfig.class);
        String[] defNames=atx.getBeanDefinitionNames();
        for (String defName : defNames) {
            System.out.println(defName);
        }
    }
}
